home *** CD-ROM | disk | FTP | other *** search
- /* CONTEXT KIT ObjectKit class with linked contextts.
- Leaving this object we set context(used + 1) - it is the way
- to hide context (and to show any context-independent picture
- or "").
- */
-
- #ifndef __CONTEXT_KIT
- #define __CONTEXT_KIT
-
- #include "objkit.h"
- #include "global.h"
- #include "context.h"
-
- class ContextKit : public ObjectKit, public Context
- {
- protected:
- char* hot; // string of hot keys
- public:
- ContextKit(char* HOT = NULL,
- rect STATUSPOS = rect(0, 24, 79, 25),
- int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
- int* STATUSLIST = NULL);
-
- void setHot(char* ch) { hot = ch; }
- void setType(int t) { statusType = t; }
- void setStrings(char** str) { statusStrings = str; }
- void setList(int* list) { statusList = list; }
- virtual void exe(int act = 0);
- virtual void show();
- };
-
- #endif __CONTEXT_KIT